<?php

class Application_Model_service_ChiTietPhietDatHangService implements Application_Model_serviceInf_ChiTietPhieuDatHangServiceInf {
	protected $_name = "tb_chitietphieudathang";
	protected static $_instance = null;
	
	protected function __construct() {
	
	}
	public static function getInstance() {
		if (self::$_instance == null) {
			self::$_instance = new self ();
		}
		return self::$_instance;
	}
	/**
	 * @param unknown_type $idPhieuDatHang
	 */
	public function getAllChiTietPhieuDatHang($idPhieuDatHang) {
		$chiTietPhieuDatHangDAO = Application_Model_dataDAO_ChiTietPhietDatHangDAO::getInstance ();
		$chiTietPhieuDatHangDAO instanceof Application_Model_dataDAO_ChiTietPhietDatHangDAO;
		$result = $chiTietPhieuDatHangDAO->getAllChiTietPhieuDatHang ( $idPhieuDatHang );
		return $result;
	}
	/**
	 * @param unknown_type $tenSanPham
	 * @param unknown_type $donGia
	 * @param unknown_type $soLuong
	 * @param unknown_type $thanhTien
	 * @param unknown_type $maSanPham
	 * @param unknown_type $maPhieuDatHang
	 */
	public function themChiTietPhieuDatHang($tenSanPham, $donGia, $soLuong, $thanhTien, $maSanPham, $maPhieuDatHang) {
		$chiTietPhieuDatHangDAO = Application_Model_dataDAO_ChiTietPhietDatHangDAO::getInstance ();
		$chiTietPhieuDatHangDAO instanceof Application_Model_dataDAO_ChiTietPhietDatHangDAO;
		$result = $chiTietPhieuDatHangDAO->themChiTietPhieuDatHang ( $tenSanPham, $donGia, $soLuong, $thanhTien, $maSanPham, $maPhieuDatHang );
		return $result;
	}

}

?>